<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数字人对话系统</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div id="container">
        <div id="avatar-container"></div>
        <div id="chat-container">
            <div id="messages"></div>
            <div class="input-area">
                <input type="text" id="message-input" placeholder="输入消息...">
                <button id="send-button">发送</button>
                <button id="voice-button">语音输入</button>
                <button id="mute-button">静音</button>
            </div>
        </div>
    </div>

    <!-- 修改这里的 Three.js 引入方式 -->
    <script async src="https://unpkg.com/es-module-shims/dist/es-module-shims.js"></script>
    <script type="importmap">
    {
        "imports": {
            "three": "https://unpkg.com/three@0.158.0/build/three.module.js",
            "three/addons/": "https://unpkg.com/three@0.158.0/examples/jsm/"
        }
    }
    </script>

    <!-- 其他脚本 -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.5.0/sockjs.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"></script>
    
    <!-- 修改为 type="module" -->
    <script type="module" src="js/avatar.js"></script>
    <script type="module" src="js/chat.js"></script>
    <script type="module" src="js/main.js"></script>
</body>
</html> 